﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;

namespace eCashDatalayer
{
    public class FileModel : INotifyPropertyChanged
    {

        public event PropertyChangedEventHandler PropertyChanged;
        private int _Files_ID; 

     	 private DateTime _Date_of_Birth; 	
	     private string _EC_Number ;
	     private int _Post ;
         private DateTime _Date_of_appoment; 
	     private DateTime _Date_closed; 	
	     private string _Title 	;
	     private string _Volume 	;
	     private int _Station 	;
	     private DateTime _Date_opened; 	
	     private string _Reference_number 	;
	     private byte _Fileout 	;
	     private string _Address 	;
	     private string _Title1 	;
	     private string _Initial 	;
	     private string _Firstname 	;
	     private string _Surname 	;
	     private string _Cellnumber 	;
	     private string _Phonenumber 	;
	     private string _Town 	;
	     private string _City 	;
	     private string _Surbub 	;
	     private string _Street_box 	;
	     private string _Relationship 	;
	     private DateTime _Date_entered ;	
	     private string _Entered_by ;	
 
        /// When the Property is changed from the PL this gets Fired
        /// </summary>
        /// <param name="property"></param>
        private void OnPropertyChanged(String property)
        {

            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(property));
            }
        }
         

                  
        public int File_ID
        {

            get
            {
                return _Files_ID;
            }
            set
            {
                _Files_ID = value;

                OnPropertyChanged("_Files_ID");

            }
        }

        public DateTime Date_of_Birth
        {

            get
            {
                return _Date_of_Birth;
            }
            set
            {
                _Date_of_Birth = value;

                OnPropertyChanged("Date_of_Birth");

            }
        }
  
        public string EC_Number
        {

            get
            {
                return _EC_Number;
            }
            set
            {
                _EC_Number = value;

                OnPropertyChanged("EC_Number");

            }
        }
        public int Post
        {

            get
            {
                return _Post;
            }
            set
            {
                _Post = value;

                OnPropertyChanged("Post");

            }
        }
        public DateTime Date_of_appoment
        {

            get
            {
                return _Date_of_appoment;
            }
            set
            {
                _Date_of_appoment = value;

                OnPropertyChanged("Date_of_appoment");

            }
        }

        public DateTime Date_closed
        {

            get
            {
                return _Date_closed;
            }
            set
            {
                _Date_closed = value;

                OnPropertyChanged("Date_closed");

            }
        }

        public string Title
        {

            get
            {
                return _Title;
            }
            set
            {
                _Title = value;

                OnPropertyChanged("Title");

            }
        }

        public string Volume
        {

            get
            {
                return _Volume;
            }
            set
            {
                _Volume = value;

                OnPropertyChanged("Volume");

            }
        }

        public int Station
        {

            get
            {
                return _Station;
            }
            set
            {
                _Station = value;

                OnPropertyChanged("Station");

            }
        }

        public DateTime Date_opened
        {

            get
            {
                return _Date_opened;
            }
            set
            {
                _Date_opened = value;

                OnPropertyChanged("Date_opened");

            }
        }

        public string Reference_number
        {

            get
            {
                return _Reference_number;
            }
            set
            {
                _Reference_number = value;

                OnPropertyChanged("Reference_number");

            }
        }


        public byte Fileout
        {

            get
            {
                return _Fileout;
            }
            set
            {
                _Fileout = value;

                OnPropertyChanged("Fileout");

            }
        }

        public string Address
        {

            get
            {
                return _Address;
            }
            set
            {
                _Address = value;

                OnPropertyChanged("Address");

            }
        }


        public string Title1
        {

            get
            {
                return _Title1;
            }
            set
            {
                _Title1 = value;

                OnPropertyChanged("Title1");

            }
        }

        public string Initial
        {

            get
            {
                return _Initial;
            }
            set
            {
                _Initial = value;

                OnPropertyChanged("Initial");

            }
        }

        public string Firstname
        {

            get
            {
                return _Firstname;
            }
            set
            {
                _Firstname = value;

                OnPropertyChanged("Firstname");

            }
        }


        public string Surname
        {

            get
            {
                return _Surname;
            }
            set
            {
                _Surname = value;

                OnPropertyChanged("Surname");

            }
        }

        public string Cellnumber
        {

            get
            {
                return _Cellnumber;
            }
            set
            {
                _Cellnumber = value;

                OnPropertyChanged("Cellnumber");

            }
        }

        public string Phonenumber
        {

            get
            {
                return _Phonenumber;
            }
            set
            {
                _Phonenumber = value;

                OnPropertyChanged("Phonenumber");

            }
        }

        public string Town
        {

            get
            {
                return _Town;
            }
            set
            {
                _Town = value;

                OnPropertyChanged("Town");

            }
        }

        public string City
        {

            get
            {
                return _City;
            }
            set
            {
                _City = value;

                OnPropertyChanged("City");

            }
        }

        public string Surbub
        {

            get
            {
                return _Surbub;
            }
            set
            {
                _Surbub = value;

                OnPropertyChanged("Surbub");

            }
        }

        public string Street_box
        {

            get
            {
                return _Street_box;
            }
            set
            {
                _Street_box = value;

                OnPropertyChanged("Street_box");

            }
        }

        public string Relationship
        {

            get
            {
                return _Relationship;
            }
            set
            {
                _Relationship = value;

                OnPropertyChanged("Relationship");

            }
        }

        public DateTime Date_entered
        {

            get
            {
                return _Date_entered;
            }
            set
            {
                _Date_entered = value;

                OnPropertyChanged("Date_entered");

            }
        }

        public string Entered_by
        {

            get
            {
                return _Entered_by;
            }
            set
            {
                _Entered_by = value;

                OnPropertyChanged("Entered_by");

            }
        }
 	
    }
}